import axios from '@/utils/request';
import {user} from './type/auth' // 用户信息验证

/*获取登录注册验证码*/
export const getSms = (user:user) => axios({ // 返回 axios请求
  url:'/getSms/',
  method: 'POST',
  data: user
})

export const login = (user:user) => axios({
  url: '/login/',
  method: 'POST',
  data: user
})
